﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EpiPoker.Objects
{
    public class Card
    {
        private Color color;
        private Type value;

        #region getter/setter

        public Color Color
        {
            get { return color; }
            set { color = value; }
        }            

        public Type Value
        {
            get { return this.value; }
            set { this.value = value; }
        }

        #endregion

        public Card(int couleur, int type)
        {
            this.color = (Color) couleur;
            this.value = (Type) type;
        }

        #region functions

        public String print()
        {
            return this.value + " de " + this.color;
        }

        #endregion
    }
}